From 8b7ca8985919dd635fcefa8fa30e4162eeb2fe53 Mon Sep 17 00:00:00 2001 From: "sos22@labyrinth.cl.cam.ac.uk" Date: Mon, 7 Jul 2003 08:54:00 +0000 Subject: [PATCH] bitkeeper revision 1.278 (3f093528SjHdAnyxMPb44WbytMKk6g) Slightly less hacky interface --- tools/internal/xi_phys_grant.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/internal/xi_phys_grant.c b/tools/internal/xi_phys_grant.c index eaf72a80f7..1923a95751 100644 --- a/tools/internal/xi_phys_grant.c +++ b/tools/internal/xi_phys_grant.c @@ -11,8 +11,8 @@ int main(int argc, char *argv[]) int fd; char *strbuf; - if (argc != 6) { - fprintf(stderr, "Usage: xi_physdev_grant \n"); + if (argc != 7) { + fprintf(stderr, "Usage: xi_physdev_grant \n"); return 1; } @@ -26,7 +26,7 @@ int main(int argc, char *argv[]) else if (argv[1][1] == 'w') buf.mode |= 2; - buf.device = atol(argv[3]); + buf.device = atol(argv[3]) + atol(argv[6]); buf.start_sect = atol(argv[4]); buf.n_sectors = atol(argv[5]); -- 2.30.2